﻿//===============================================================================
// La Pomme d'Or Krystal Application
// Windows Presentation Foundation Composite Application 
//===============================================================================
// Copyright (c) Jérôme Piquot.  All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//===============================================================================
// The example companies, organizations, products, domain names,
// e-mail addresses, logos, people, places, and events depicted
// herein are fictitious.  No association with any real company,
// organization, product, domain name, email address, logo, person,
// places, or events is intended or should be inferred.
//===============================================================================


namespace PJ.Data
{
    /// <summary>
    /// Saves and retreive <see cref="IEntityFragmentData"/> instance to/from cache
    /// </summary>
    /// <remarks>
    /// The object will be cached using <see cref="IEntityFragmentData"/> concrete type class name and id property as cache key. So the <see cref="IEntityFragmentData"/> id property must be unique for each concrete class type.
    /// </remarks>
    public interface IEntityFragmentCache : IObjectDataCache
    {
    }
    /// <summary>
    /// Saves and retreive <see cref="IEntityFragmentData"/> instance to/from cache
    /// </summary>
    /// <remarks>
    /// The object will be cached using <see cref="IEntityFragmentData"/> concrete type class name and id property as cache key. So the <see cref="IEntityFragmentData"/> id property must be unique for each concrete class type.
    /// </remarks>
    public interface IEntityFragmentCache<T> : IObjectDataCache<T>, IEntityFragmentCache
        where T : class, IEntityFragmentData
    {
    }
}
